package com.czxy.demo02;

import cn.itcast.servlet.BaseServlet;

import javax.servlet.annotation.WebServlet;
import java.util.List;
@WebServlet("/productServlet")
public class ProductServlet extends BaseServlet {
    private ProductService productService=new ProductService();
    public String findAll(){
        List<Product>list= productService.findAll();
        getRequest().setAttribute("list",list);
        return "list.jsp";
    }
}
